QT -= gui
QT += network
CONFIG += c++11 console
CONFIG -= app_bundle

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        downloadmq.cpp \
        library.cpp \
        main.cpp \
        qtredis.cpp \
        reader.cpp \
        server.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    command.h \
    downloadmq.h \
    library.h \
    qtredis.h \
    reader.h \
    server.h

#INCLUDEPATH += ../libhv/build/include
#LIBS += -L$$PWD/../libhv/build/lib/libhv_static.a


win32: LIBS += -L$$PWD/../libhv/build/lib/Release -lhv

INCLUDEPATH += $$PWD/../libhv/build/include
DEPENDPATH += $$PWD/../libhv/build/include

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../libhv/build/lib/Release/hv.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/../libhv/build/lib/Release/hv.a


unix:!macx: LIBS += -L$$PWD/../libhv/build/lib/Release/ -lhv_static
unix:!macx: PRE_TARGETDEPS += $$PWD/../libhv/build/lib/Release/libhv_static.a
